import React from "react"
import{
    HashRouter,
    Switch,
    Route,
    Link,
} from "react-router-dom";
import Login from "./component/Login"
import Home from "./component/Home"
class Router extends React.Component{
    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/login" component={Login}></Route>
                    <Route path="/" component={Home}></Route>
                </Switch>
            </HashRouter>
        )
    }
}
export default Router